<template>
  <div class="banner-item">
    <img v-if="componentData.coverImage" :src="componentData.coverImage" alt="solution" />
    <p v-if="componentData.titleZh">{{ componentData[`title${capitalizeLang}`] }}</p>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
  props: {
    componentData: {
      type: Object,
      default: () => ({}),
    },
  },
  data() {
    return {}
  },
  computed: {
    ...mapGetters(['capitalizeLang']),
  },
  methods: {},
}
</script>

<style lang="less" scoped>
@import '~assets/var';

.banner-item {
  background-color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 100px;

  img {
    width: 100%;
    display: block;
  }

  p {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    left: 0;
    color: #fff;
    .width(1141);
    .pd(70, 0, 70, 360);
    .ft(18);
    .lineH(30);
  }
}
</style>
